<div class="form">
	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'person-form',
		'enableAjaxValidation'=>false,
	)); 
	?>
	<p class="note"><?php echo t('Los Campos con','nucleo_etiqueta') . ' <span class="required">*</span> ' . t('son requeridos','nucleo_etiqueta');?> </p>
	<?php
	echo $form->errorSummary(array($persona)); ?>
	<fieldset>
		<fieldset>
			<legend><?php echo t('Datos Personales','persona_etiqueta')?></legend>
			<?php 
				$this->renderPartial(
						'_persona_buscar'
					);
			
			?>
		</fieldset>
		
		<fieldset>
			<legend><?php echo t('Datos Personales','persona_etiqueta')?></legend>
		<?php 
			$this->renderPartial(
									'_persona_personal',
									array(
											'form'=>$form,
											'persona'=>$persona,
										)
								);
		?>
		</fieldset>
		<fieldset>
			<legend><?php echo t('Direcci&oacute;n','direccion_etiqueta')?></legend>
		<?php
			$this->renderPartial(
									'_persona_direccion',
									array(
											'form'=>$form,
											'persona'=>$persona,
										)
								);
		?>
		</fieldset>
		<fieldset>
			<legend><?php echo t('Comunicaci&oacute;n','comunicacion_etiqueta')?></legend>
		<?php
			$this->renderPartial(
									'_persona_comunicacion',
									array(
											'form'=>$form,
											'persona'=>$persona,
										)
								);
		?>
		</fieldset>
		
		<fieldset>
			<?php 
				echo CHtml::submitButton(t($modelPerson->isNewRecord ? 'Crear' : 'Guardar','nucleo_etiqueta'),array('class'=>'submit'));
				//$test = new PersonController($id)
				$linkCancel = ($modelPerson->isNewRecord)? 'index':  'index';
				echo CHtml::link(t('Cancelar','nucleo_etiqueta'), $linkCancel); 
			?>
		</fieldset>
	
	</fieldset>
<?php $this->endWidget(); ?>

</div><!-- form -->